body {
    display: flex;
    margin: 0;
}
.sidebar {
    width: 200px;
    background: #f0f0f0;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.sidebar a, .button {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.danger {
    background: #dc3545 !important;
}
.content {
    flex: 1;
    padding: 20px;
}
#database-status-table table {
    width: 100%;
    border-collapse: collapse;
}
#database-status-table th,
#database-status-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#database-status-table th {
    background-color: #f2f2f2;
}

.config-modal {
  display: none;
  position: fixed;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 20px;
}

.config-content {
  background: #f8f9fa;
  height: 90%;
  width: 100%;
  padding: 20px;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  overflow-y: auto;
}

#config-data {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  white-space: pre-wrap;
}

.json-key { color: #0366d6; }
.json-string { color: #22863a; }
.json-number { color: #b35900; }
.json-boolean { color: #6f42c1; }
.json-null { color: #d73a49; }


.data-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  margin: 20px 0;
  float: right;
  border: 1px solid #ddd;
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.data-table th {
  background-color: #f2f2f2;
  font-weight: 600;
}


#queryForm .row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

#queryForm .col-md-3 {
  flex: 1;
  min-width: 200px;
}

#class-config #class-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

#class-config .class-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}